package com.hc.entity;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString
public class Permission implements Serializable {

    private Long id;

    /**
     * 权限名称
     */
    private String name;

    /**
     * 权限字符串
     */
    private String code;

    /**
     * URL
     */
    private String url;

    /**
     * 资源类型
     */
    private Integer type;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 父菜单ID
     */
    private Long pid;

    public Permission(String name, String code, String url) {
        this.name = name;
        this.code = code;
        this.url = url;
    }
}
